package com.yenlien.traceyun.control.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * Created by LiuSha on 2020/3/20.
 * 模型库分类
 */
@Entity
@Table(name = "t_model_classify")
public class ModelClassify extends BaseEntity {
    @Column
    private String name;//分类名称
    @Column
    private String sort;//排序越大越靠后
    @Column
    private String parentId;//父Id
    @Column
    private String parentName;//父名称
    @Column
    private String code;//编码
    @Column
    private String displayImg;//显示图片
    @Column
    private String clickImg;//点击图片
    @Column
    private int type;//分类级别（0一级；1二级）
    @Transient
    private List<ModelClassify> modelClassifyList;
    @Transient
    private String modelClassifys;

    public String getModelClassifys() {
        return modelClassifys;
    }

    public void setModelClassifys(String modelClassifys) {
        this.modelClassifys = modelClassifys;
    }

    public List<ModelClassify> getModelClassifyList() {
        return modelClassifyList;
    }

    public void setModelClassifyList(List<ModelClassify> modelClassifyList) {
        this.modelClassifyList = modelClassifyList;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDisplayImg() {
        return displayImg;
    }

    public void setDisplayImg(String displayImg) {
        this.displayImg = displayImg;
    }

    public String getClickImg() {
        return clickImg;
    }

    public void setClickImg(String clickImg) {
        this.clickImg = clickImg;
    }

}
